<template>
  <div style="padding-top: 16px;">
    <evaluation-list :list="list" class="evaluationList"/>
    <p style="height: 40px;"/>
    <div
      @click="toTeamEvaluationLog" class="bottomButton">团队测评记录
    </div>
  </div>
</template>

<script>
  import EvaluationAPI from "../../repo/api/EvaluationAPI";
  import EvaluationList from "./component/EvaluationList";
  import {push} from "../../router/util";

  export default {
    components: {EvaluationList},
    data() {
      return {list: []}
    },
    created() {
      EvaluationAPI.getMyEvaluateList()
        .then((result) => {
          this.list = result.responseData.list
        })
    },
    methods: {
      toTeamEvaluationLog() {
        push('/evaluation-log')
      }
    }
  }
</script>

<style scoped>

  .evaluationList {
    width: calc(100% - 32px);
    margin-right: auto;
    margin-left: auto;
  }

  .bottomButton {
    position: fixed;
    bottom: 0;
    height: 48px;
    line-height: 48px;
    width: 100%;
    text-align: center;
    background-color: white;
    border-top: #eeeeee solid 1px;
    font-weight: bold;
    color: #1DA1F2;
    font-size: 16px;
  }

  .bottomButton:active {
    background-color:#1DA1F230;
    transition: 0.2s;
    transition-timing-function: linear;
  }

</style>
